﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite/AdminSite.Master" AutoEventWireup="true" CodeBehind="NewVehicle.aspx.cs" Inherits="InsuranceVehicle.AdminSite.NewVehicle" %>
<%@ Register src="Menu.ascx" tagname="Menu" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageTitle" runat="server">
New Vehicle
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">

    <uc1:Menu ID="Menu1" runat="server" SelectedMenu="add_vehicle" ShowElement="all"/>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" runat="server">
New Vehicle
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="titleContent" runat="server">
New Vehicle
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContent" runat="server">
<div class="contentinner">
        <asp:Panel ID="panelUpdatePass" runat="server">
            <h4 class="widgettitle nomargin shadowed">
                New Vehicle</h4>
            <div class="widgetcontent bordered shadowed nopadding">
                <div class="stdform stdform2">
                    <p>
                        <label>
                            Vehicle Model</label>
                        <span class="field">
                            <asp:TextBox ID="txtModel" CssClass="input-xlarge" runat="server" ></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please, enter the Vehicle model"
                                ControlToValidate="txtModel" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                            <asp:Label ID="lblErrOldPass" Visible="False" runat="server" Font-Italic="True" ForeColor="Red"></asp:Label>
                        </span>
                    </p>
                    <p>
                        <label>
                            Number of seat</label>
                        <span class="field">
                            <asp:TextBox ID="txtSeat" CssClass="input-xlarge" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please, enter number of seats"
                                ControlToValidate="txtSeat" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ControlToValidate="txtSeat" Display="Dynamic" 
                            ErrorMessage="Numer of seat must be number" Font-Italic="True" ForeColor="Red" 
                            ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                        </span>
                    </p>
                    <p class="stdformbutton">
                        <asp:Button ID="btnChangePass" runat="server" Text="Submit" class="btn btn-primary"
                            Width="140px" CausesValidation="true" onclick="btnChangePass_Click"  />
                        <asp:Label ID="lblSuccess" Visible="False" runat="server" Font-Italic="True" ForeColor="Red"></asp:Label>
                    </p>
                </div>
            </div>
        </asp:Panel>
    </div>
</asp:Content>
